<form nz-form [formGroup]="form" (ngSubmit)="submit()">
  <div nz-row>
    <div nz-col [nzSpan]="24">
      <nz-form-item>
        <nz-form-label [nzSpan]="8">名称
        </nz-form-label>
        <nz-form-control [nzSpan]="12" nz-col [nzErrorTip]="errorTpl">
          <input nz-input placeholder="名称" formControlName="name" maxlength="100" />
          <ng-template #errorTpl let-control>
            <ng-container *ngIf="control.hasError('required')">必填
            </ng-container>
          </ng-template>
        </nz-form-control>
      </nz-form-item>
    </div>
  </div>

  <div nz-row nzJustify="center">
    <button nz-button nzType="primary" type="submit" [disabled]="form.invalid">提 交</button>
  </div>
</form>
